package com.md.EoL;

public class EoL2 {

	public static void main(String[] args) {
		long a[]={1,3,5,92,7,8,23,14,72};
		long b[]= {1,0};
		EoL(a,b);
		System.out.print("[");
		for (int i = 0; i < b.length; i++) {
			if (i==0) {
				System.out.print(b[i]+",");
			}else {
				System.out.print(b[i]);
			}
		}
		System.out.print("]");
	}
	public static long[] EoL(long a[],long b[]) {
		long max=a[0];
		long min=a[0];
		for (int i = 0; i < a.length; i++) {
			if (max<a[i]) {
				max=a[i];
			}
			if (min>a[i]) {
				min=a[i];
			}
		}
		b[0]=max;
		b[1]=min;
		return b;
	}

}
